﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeFile="ThemSanPham.aspx.cs" Inherits="ThemSanPham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div class="ThemSP">
<table>
<tr>
    <td class="tdTen">Mã Sản Phẩm</td>
    <td><asp:TextBox ID="txtMSP" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
            ErrorMessage="Nhập mã sản phẩm" ControlToValidate="txtMSP" Font-Size="12px" 
            ForeColor="Red"></asp:RequiredFieldValidator>
        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
            ErrorMessage="Mã sản phẩm không đúng XX-00" ControlToValidate="txtMSP" 
            ValidationExpression="[A-Z]{2}-[0-9]{2}" Font-Size="12px" ForeColor="Red" ></asp:RegularExpressionValidator>
    </td>
</tr>
<tr>
    <td class="tdTen">Tên Sản Phẩm</td>
    <td><asp:TextBox ID="txtTenSP" runat="server" Width="200px"></asp:TextBox>
        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Nhập tên sản phẩm" ControlToValidate="txtTenSP" Font-Size="12px" ForeColor="Red" ></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td class="tdTen">Hãng Sản Xuất</td>
    <td><asp:TextBox ID="txtHangSX" runat="server" Width="200px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Nhập hãng sản xuất" ControlToValidate="txtHangSX" Font-Size="12px" ForeColor="Red" ></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td class="tdTen">Ngày Giới Thiệu</td>
    <td><asp:DropDownList ID="Ngay" runat="server" >
                    </asp:DropDownList>
                    <asp:DropDownList ID="Thang" runat="server">
                    </asp:DropDownList>
                    <asp:DropDownList ID="Nam" runat="server">
                    </asp:DropDownList></td>
</tr>
<tr>
    <td class="tdTen">Tình Trạng</td>
    <td><asp:TextBox ID="txtTinhTrang" runat="server" Width="200px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ErrorMessage="Nhập tình trạng sản phẩm" ControlToValidate="txtTinhTrang" Font-Size="12px" ForeColor="Red" ></asp:RequiredFieldValidator>
    </td>    
</tr>


<tr>
    <td class="tdTen">Giá</td>
    <td><asp:TextBox ID="txtGia" runat="server" Width="200px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Nhập giá sản phẩm" ControlToValidate="txtGia" Font-Size="12px" ForeColor="Red" ></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
            ErrorMessage="Giá chỉ nhập số" ControlToValidate="txtGia" 
            ValidationExpression="^\d+$" Font-Size="12px" ForeColor="Red" ></asp:RegularExpressionValidator>

    </td>

</tr>
<tr>
    <td class="tdTen">Kích Thước</td>
    <td><asp:TextBox ID="txtKichThuoc" runat="server" Width="200px"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Nhập kích thước sản phẩm" ControlToValidate="txtKichThuoc" Font-Size="12px" ForeColor="Red" ></asp:RequiredFieldValidator>
    </td>
</tr>
<tr>
    <td class="tdTen">Hình</td>
    <td>
        <asp:FileUpload ID="FileUpload1" runat="server" />
    </td>
</tr>
<tr>
    <td class="tdTen" style="height: 25px; width: 200px;" >Khả Năng</td>
    <td style="height: 25px" >
        <asp:DropDownList ID="DropDownList1" runat="server">
            <asp:ListItem Value="Chon">Chọn </asp:ListItem>
            <asp:ListItem Value="-1">-1</asp:ListItem>
            <asp:ListItem Value="1">1</asp:ListItem>
            <asp:ListItem Value="2">2</asp:ListItem>
            <asp:ListItem Value="3">3</asp:ListItem>
        </asp:DropDownList>
    </td>
</tr>
<tr>
    <td class="tdTen">&nbsp;</td>    
    <td>&nbsp;</td>
</tr>
<tr>
    <td class="tdTen">Hình Minh Họa</td>
    <td>
        <asp:FileUpload ID="FileUpload2" runat="server" />
    </td>
</tr>
    <tr>
        <td style="width: 200px">Chi Tiết </td>
            
        <td><CKEditor:CKEditorControl ID="CKEditorControl1" runat="server"></CKEditor:CKEditorControl></td>
    </tr>
<tr>
    <td class="tdTen"></td>
    <td>
    <br />
        <asp:Button ID="btnThemSP" runat="server" Text="Thêm Sản Phẩm" CssClass="myButton" OnClick="btnThemSP_Click" />
        <asp:Label ID="Label2" runat="server" Text=" "></asp:Label>
    </td>
</tr>
    
    
    
    
    
    
    
    
    
    
</table>
</div>
</asp:Content>

